package net.osweb.crm.modules.event.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Taskeventnote entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "event_taskeventnote")
public class TaskEventNote implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7537388468671099107L;
	private Integer id;
	private Integer userid;
	private String eventname;
	private Timestamp createtime;
	private Timestamp endDatetime;
	private Integer category;
	private Integer isavailability;
	private String description;
	private String comment;

	// Constructors

	/** default constructor */
	public TaskEventNote() {
	}

	/** full constructor */
	public TaskEventNote(Integer userid, String eventname,
			Timestamp createtime, Timestamp endDatetime, Integer category,
			Integer isavailability, String description, String comment) {
		this.userid = userid;
		this.eventname = eventname;
		this.createtime = createtime;
		this.endDatetime = endDatetime;
		this.category = category;
		this.isavailability = isavailability;
		this.description = description;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "eventname")
	public String getEventname() {
		return this.eventname;
	}

	public void setEventname(String eventname) {
		this.eventname = eventname;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "endDatetime", length = 19)
	public Timestamp getEndDatetime() {
		return this.endDatetime;
	}

	public void setEndDatetime(Timestamp endDatetime) {
		this.endDatetime = endDatetime;
	}

	@Column(name = "category")
	public Integer getCategory() {
		return this.category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}